Repository navigation
MCDC part 10: miscellanea - #12340
danielinux wants to merge 8 commits into
Conversation
138f01c to
69a2585
Compare
There was a problem hiding this comment.
🟡 Changes recommended
New regression assertions in both whitebox tests are recorded as skips rather than failures, allowing the smoke tests to pass despite incorrect behavior.
2 open issues
What changed in this PR
Extends wolfCrypt’s modified condition/decision coverage (MC/DC) tests with boundary cases and internal-state checks. The PR changes tests only, not library implementations.
Changes:
- Add arithmetic and cryptographic API boundary-case tests.
- Expand white-box coverage for callbacks, memory ownership, error queues, and cleanup paths.
- Propagate new cleanup-abort and ECCSI check failures through exit status.
| File | Description |
|---|---|
wolfcrypt/test/test.c |
Tests 64-bit wrapper overflow/underflow and all-zero DH prime padding. |
tests/unit-mcdc/test_wc_port_whitebox.c |
Checks cleanup-abort state transitions and reports failures. |
tests/unit-mcdc/test_sakke_whitebox.c |
Tests invalid arguments before key initialization. |
tests/unit-mcdc/test_memory_whitebox.c |
Checks heap-hint ownership and reference-count drops. |
tests/unit-mcdc/test_logging_whitebox.c |
Tests thread-local error-queue marks and saturation. |
tests/unit-mcdc/test_logging_globalq_whitebox.c |
Tests global error-queue marking and popping. |
tests/unit-mcdc/test_eccsi_fault_whitebox.c |
Tests SSK order validation with an injected read failure. |
tests/unit-mcdc/test_cryptocb_whitebox.c |
Expands device-detection, coordinate-validation, and callback dispatch coverage. |
tests/api/test_hmac.c |
Tests missing device-backed HMAC keys identified by label. |
tests/api/test_ed448.c |
Tests a non-NULL identifier with zero length. |
tests/api/test_dsa.c |
Tests empty and oversized signature-domain parameters. |
Review effort: Balanced
|
27f33e2 to
43177a2
Compare
wolfSSL-Fenrir-bot
left a comment
There was a problem hiding this comment.
Fenrir Automated Review — PR #12340
Scan targets checked: wolfcrypt-bugs, wolfssl-bugs
Coverage: 11 of 11 in-scope changed file(s) opened by the reviewer
Findings: 2
2 finding(s) posted as inline comments (see file-level comments below)
This review was generated automatically by Fenrir. Reported findings require changes before merge.
Review tier: Max
Release the initialized ECC keys so heap math frees the digits allocated by the negative-coordinate checks.
wolfSSL-Fenrir-bot
left a comment
There was a problem hiding this comment.
Fenrir Automated Review — PR #12340
Scan targets checked: wolfssl-bugs
Unchanged since last review (not re-run): wolfcrypt-bugs
Coverage: 1 of 1 in-scope changed file(s) opened by the reviewer
Fenrir result: Approved ✅
No new issues found in the changed files.
Advisory only — this automated result does not count as a GitHub approval.
Review tier: Lite
Fenrir's latest completed scan found no issues; clearing the prior automated change request.

No description provided.